# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils gnome2

PF=${PF//_*}

DESCRIPTION="A versatile IDE for GNOME"
HOMEPAGE="http://www.anjuta.org"
SRC_URI="mirror://sourceforge/${PN}/${PF}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="doc glade inherit-graph subversion"

RDEPEND=">=dev-libs/glib-2.4.0
		 >=x11-libs/gtk+-2.4.0
		 >=gnome-base/orbit-2.6.0
		 >=gnome-base/libglade-2.3.0
		 >=gnome-base/libgnome-2.6.0
		 >=gnome-base/libgnomeui-2.6.0
		 >=gnome-base/libgnomeprint-2.4.0
		 >=gnome-base/libgnomeprintui-2.4.0
		 >=gnome-base/gnome-vfs-2.6.0
		 >=gnome-base/gconf-2.6.0
		 >=x11-libs/vte-0.7.0
		 >=dev-libs/libxml2-2.4.23
		 >=x11-libs/pango-1.1.1
		 >=gnome-extra/gdl-0.5.0
		 >=sys-devel/autogen-5.6.4
		 >=dev-util/devhelp-0.9.3
		 >=dev-util/gnome-build-0.1.2
		 >=dev-libs/libpcre-5.0
		   dev-libs/libxslt
		   doc? ( >=dev-util/gtk-doc-1.0 )
		   glade? ( >=dev-util/glade-3.0.0_pre05232005 )
		   subversion? ( >=dev-util/subversion-1.1.4 net-misc/neon dev-libs/apr )
		   inherit-graph? ( >=media-gfx/graphviz-2.2.1 )"
DEPEND="${RDEPEND}
		  dev-lang/perl
		  sys-devel/gettext
		  dev-util/pkgconfig"

# Make sure that it is not build in parallel
MAKEOPTS="${MAKEOPTS} -j1"

G2CONF="${G2CONF} \
		$(use_enable doc gtk-doc) \
		$(use_enable glade plugin-glade) \
		$(use_enable subversion plugin-subversion) \
		$(use_enable inherit-graph plugin-class-inheritance)"

S=${WORKDIR}/${PF}
		
pkg_postinst() {
	gnome2_pkg_postinst

	if use doc; then
		dodoc ${S}/manuals
		dodoc ${S}/doc
	fi

	ebeep 1
	einfo "Some project templates may require additional development"
	einfo "libraries to function correctly. It goes beyond the scope"
	einfo "of this ebuild to provide them."
	epause 5
}
